# $Id: Makefile,v 1.5 2004/01/28 20:34:16 sby Exp $

BBSHOME?= $(HOME)

# freebsd , linux , solaris ... etc. (use by innbbsd)
OSTYPE = freebsd

SUBDIR += lib
SUBDIR += myth
SUBDIR += SO
SUBDIR += util

all:
.for dir in ${SUBDIR}
	@echo "####################"
	@echo "make ${dir}"
	@echo "####################"
	@cd ${dir};make all
.endfor
	@echo "####################"
	@echo "make innbbsd"
	@echo "####################"
	@cd innbbsd;make ${OSTYPE}

install:
.for dir in ${SUBDIR}
	@echo "####################"
	@echo "make ${dir}"
	@echo "####################"
	@cd ${dir};make install
.endfor
	@echo "####################"
	@echo "make innbbsd"
	@echo "####################"
	@cd innbbsd;make ${OSTYPE} install

clean:
.for dir in ${SUBDIR}
	@echo "####################"
	@echo "clean ${dir}"
	@echo "####################"
	@cd ${dir};make clean
.endfor
	@echo "####################"
	@echo "clean innbbsd"
	@echo "####################"
	@cd innbbsd;make clean

